import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../../../shared/shared.module';
import { PageTagComponent } from './page.tag';
import { CadDrawingsComponent } from './cadDrawings.component';
import { OperaModalComponent } from './operaModal.component';

@NgModule({
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild([
      {
        path: ':type',
        component: PageTagComponent,
        data: { title: 'CAD图纸' }
      },
      {
        path: '**', redirectTo: 'view'
      }
    ])
  ],
  declarations: [CadDrawingsComponent, PageTagComponent, OperaModalComponent],
  exports: [RouterModule]
})
export class CadDrawingsModule { }
